<template>
    <h1 v-text="text"></h1>
    <div v-text="html"></div>
    <div v-html="html"></div>
    <h1 v-pre>{{ n }}</h1>
    <button @click="n++">点击n++</button>
</template>

<script setup lang="js" name="test">
import { ref } from 'vue';
let text = ref('hello world')
let html = ref('<h2>hello java</h2>')
let n = ref(0);
</script>

<style></style>